$OpenBSD: patch-kimgio_CMakeLists_txt,v 1.1 2013/12/08 19:13:34 zhuk Exp $
Unbreak build by providing correct search mechanizm.
--- kimgio/CMakeLists.txt.orig	Wed Nov  6 18:11:39 2013
+++ kimgio/CMakeLists.txt	Wed Nov  6 19:06:26 2013
@@ -6,11 +6,18 @@ include(KDE4Defaults)
 ##################################
 # WebP image IO support
 
-find_library(FOUND_WEBP webp)
-if ( FOUND_WEBP )
+find_package(Webp)
+set_package_properties(Webp PROPERTIES DESCRIPTION "WebP video codec support"
+                       URL "https://code.google.com/p/webp/"
+                       TYPE OPTIONAL
+                       PURPOSE "Required for WebP image IO support"
+                      )
+
+if (Webp_FOUND)
+  include_directories(${Webp_INCLUDE_DIRS})
   set(kimg_webp_LIB_SRCS webp.cpp)
   kde4_add_plugin(kimg_webp ${kimg_webp_LIB_SRCS})
-  target_link_libraries(kimg_webp ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} webp)
+  target_link_libraries(kimg_webp ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${Webp_LIBRARIES})
 
   install(TARGETS kimg_webp  DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/imageformats/)
   install(FILES webp.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
